home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 …ember: Reference Library / Dev.CD Dec 00 RL Disk 1.toast / mac / Technical Documentation / Develop / develop Issue 20 / develop Issue 20 code / Scripting the Finder.sea / Scripting the Finder / Zawphing / MenuTable.cp / MenuTable.cp
Encoding:
Text File  |  1994-10-11  |  879 b   |  37 lines  |  [TEXT/MMCC]

  1. /*================================================================================
  2.     menuTable.c
  3.     
  4.     Menu bar function table
  5. ================================================================================*/
  6. #include "MenuTable.h"
  7. #include "MenuHandler.h"
  8.  
  9. //
  10. // For ExitProgram
  11. //
  12. #include "Main.h"
  13.  
  14. MENUFUNCTIONS menuTable[] =
  15. {
  16.     M_CLOSEFRONT,        0, 0,    CloseFrontWindow,                0,
  17.  
  18.     M_QUIT,                0, 0,    ExitProgram,                    0,
  19.  
  20.     //
  21.     // My old menu handler is kind of icky in that
  22.     // it requires an entry for every item (to store
  23.     // the menu and item IDs), even if the function
  24.     // pointer is not used.
  25.     //
  26.     // We don't need a function pointer for the various
  27.     // "METHOD x" menu items because they are handled
  28.     // by the set types dialog
  29.     //
  30.     501,                0, 0,    nil,                            0,
  31.     502,                0, 0,    nil,                            0,
  32.     503,                0, 0,    nil,                            0,
  33.     504,                0, 0,    nil,                            0,
  34.     
  35.     0,                    0, 0,    nil,                            0
  36. };
  37.